package com.yuwj.chinaa.base;

import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.lzy.okgo.model.Progress;
import com.yuwj.chinaa.activity.IActivity;
import com.yuwj.chinaa.entity.EntityAppInfo;
import com.yuwj.chinaa.entity.EntityAssetDetailRecord;
import com.yuwj.chinaa.entity.EntityAssetGTEDetail;
import com.yuwj.chinaa.entity.EntityAssetGTEOverview;
import com.yuwj.chinaa.entity.EntityAssetGTKDetail;
import com.yuwj.chinaa.entity.EntityAssetGTKOverview;
import com.yuwj.chinaa.entity.EntityAssetsBag;
import com.yuwj.chinaa.entity.EntityBurseCoinNumber;
import com.yuwj.chinaa.entity.EntityBurseRecord;
import com.yuwj.chinaa.entity.EntityBurseRecordDetail;
import com.yuwj.chinaa.entity.EntityCommunity;
import com.yuwj.chinaa.entity.EntityCommunityLevelMember;
import com.yuwj.chinaa.entity.EntityComputeCodeEarningRecord;
import com.yuwj.chinaa.entity.EntityExercise;
import com.yuwj.chinaa.entity.EntityGeneralAuth;
import com.yuwj.chinaa.entity.EntityMyCommunity;
import com.yuwj.chinaa.entity.EntityMyComputeCode;
import com.yuwj.chinaa.entity.EntityNews;
import com.yuwj.chinaa.entity.EntityNotice;
import com.yuwj.chinaa.entity.EntityOrder;
import com.yuwj.chinaa.entity.EntityOrderDetail;
import com.yuwj.chinaa.entity.EntityOrderWithTrade;
import com.yuwj.chinaa.entity.EntityOtherAssets;
import com.yuwj.chinaa.entity.EntityPartnerApply;
import com.yuwj.chinaa.entity.EntityReceivingAddress;
import com.yuwj.chinaa.entity.EntityTradeOrderDeatil;
import com.yuwj.chinaa.entity.EntityTradePriceData;
import com.yuwj.chinaa.entity.EntityTradePriceItem;
import com.yuwj.chinaa.entity.EntityTradeSaleAndBuy;
import com.yuwj.chinaa.entity.EntityUser;
import com.yuwj.chinaa.util.SharedpreferenceUtil;

import java.io.File;
import java.util.List;

import butterknife.ButterKnife;
import butterknife.Unbinder;

/**
 * 基础fragment,可延迟加载
 */

public abstract class BaseFragment extends Fragment implements IActivity {

    protected Context context = null;
    public EntityUser entityUser;
    Unbinder unbinder;

    /**
     * 设置fragment资源ID
     *
     * @return
     */
    public abstract int setCustomContentViewResourceId();

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        context = getActivity();
        entityUser = SharedpreferenceUtil.getInstance().getUserInfo(context);
        View view = inflater.inflate(setCustomContentViewResourceId(), container,
                false);
        unbinder = ButterKnife.bind(this, view);
        initParam();
        initView();
        initOperator();
        return view;
    }


    public abstract void initParam();

    public abstract void initView();

    public abstract void initOperator();

    @Override
    public void onDestroy() {
        super.onDestroy();
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }


    @Override
    public void xxxxxxxxxxxxxx应用相关开始xxxxxxxxxxxxxx() {

    }

    @Override
    public void onAppInfoSuccess(EntityAppInfo entityAppInfo) {

    }

    @Override
    public void onAppInfoFail(Exception e) {

    }

    @Override
    public void onAppFeedbackSuccess(String info) {

    }

    @Override
    public void onAppFeedbackFail(Exception e) {

    }

    @Override
    public void appUploadFilesImageSuccess(String imgUrl) {

    }

    @Override
    public void appUploadFilesImageFail(Exception e) {

    }

    @Override
    public void onDownloadFileStart() {

    }

    @Override
    public void onDownloadFileSuccess(File file) {

    }

    @Override
    public void onDownloadFileFail(Throwable throwable) {

    }

    @Override
    public void onDownloadFileProgress(Progress progress) {

    }

    @Override
    public void onDownloadFileFinish() {

    }

    @Override
    public void xxxxxxxxxxxxxx应用相关结束xxxxxxxxxxxxxx() {

    }

    @Override
    public void xxxxxxxxxxxxxx账户相关开始xxxxxxxxxxxxxx() {

    }

    @Override
    public void onUserLoginSuccess(EntityUser entityUser) {

    }

    @Override
    public void onUserLoginFail(Exception e) {

    }

    @Override
    public void onUserLogoutSuccess() {

    }

    @Override
    public void onUserLogoutFail(Exception e) {

    }

    @Override
    public void onMsgGetVerifyCodeSuccess(String code) {

    }

    @Override
    public void onMsgGetVerifyCodeFail(Exception e) {

    }

    @Override
    public void onUserRegisterSuccess() {

    }

    @Override
    public void onUserRegisterFail(Exception e) {

    }

    @Override
    public void onUserResetPasswordSuccess(String pwd) {

    }

    @Override
    public void onUserResetPasswordFail(Exception e) {

    }

    @Override
    public void onUserForgetPasswordSuccess(String pwd) {

    }

    @Override
    public void onUserForgetPasswordFail(Exception e) {

    }

    @Override
    public void onUserBindEmailSuccess(String resp) {

    }

    @Override
    public void onUserBindEmailFail(Exception e) {

    }

    @Override
    public void onUserGetUserSuccess(EntityUser entityUser) {

    }

    @Override
    public void onUserGetUserFail(Exception e) {

    }

    @Override
    public void onUserSendEmailVerifyCodeSuccess(String resp) {

    }

    @Override
    public void onUserSendEmailVerifyCodeFail(Exception e) {

    }

    @Override
    public void onUserSetPayPasswordSuccess(String resp) {

    }

    @Override
    public void onUserSetPayPasswordFail(Exception e) {

    }

    @Override
    public void onUserUploadImgSuccess(String resp) {

    }

    @Override
    public void onUserUploadImgFail(Exception e) {

    }

    @Override
    public void onUploadPhotoSuccess(String resp) {

    }

    @Override
    public void onUploadPhotoFail(Exception e) {

    }

    @Override
    public void onUserUpdateNameSuccess() {

    }

    @Override
    public void onUserUpdateNameFail(Exception e) {

    }

    @Override
    public void onUserInvitationCodeSuccess(String invitationCode) {

    }

    @Override
    public void onUserInvitationCodeFail(Exception e) {

    }

    @Override
    public void onUserUpdatePhoneSuccess(String info) {

    }

    @Override
    public void onUserUpdatePhoneFail(Exception e) {

    }

    @Override
    public void onGetUserCommunitySuccess(EntityMyCommunity entityMyCommunity) {

    }

    @Override
    public void onGetUserCommunityFail(Exception e) {

    }

    @Override
    public void onGetNoticeListSuccess(List<EntityNotice> entityNoticeList) {

    }

    @Override
    public void onGetNoticeListFail(Exception e) {

    }

    @Override
    public void onGetNewsListSuccess(List<EntityNews> entityNewsList) {

    }

    @Override
    public void onGetNewsListFail(Exception e) {

    }

    @Override
    public void onGetNewsDetailSuccess(EntityNews entityNews) {

    }

    @Override
    public void onGetNewsDetailFail(Exception e) {

    }

    @Override
    public void onUserFeedbackSuccess() {

    }

    @Override
    public void onUserFeedbackFail(Exception e) {

    }

    @Override
    public void onGetReceiveAddressListSuccess(List<EntityReceivingAddress> list) {

    }

    @Override
    public void onGetReceiveAddressListFail(Exception e) {

    }

    @Override
    public void onAddReceivingAddressSuccess() {

    }

    @Override
    public void onAddReceivingAddressFail(Exception e) {

    }

    @Override
    public void onDeleteReceivingAddressSuccess() {

    }

    @Override
    public void onDeleteReceivingAddressFail(Exception e) {

    }

    @Override
    public void onModifyReceivingAddressSuccess() {

    }

    @Override
    public void onModifyReceivingAddressFail(Exception e) {

    }

    @Override
    public void xxxxxxxxxxxxxx账户相关结束xxxxxxxxxxxxx() {

    }

    @Override
    public void xxxxxxxxxxxxxx首页相关开始xxxxxxxxxxxxxx() {

    }

    @Override
    public void onGetAssetsListSuccess(List<EntityAssetsBag> assetsBagList) {

    }

    @Override
    public void onGetAssetsListFail(Exception e) {

    }

    @Override
    public void onGetAssetsDetailSuccess(EntityAssetsBag entityAssetsBag) {

    }

    @Override
    public void onGetAssetsDetailFail(Exception e) {

    }

    @Override
    public void onBuyAssetsSuccess() {

    }

    @Override
    public void onBuyAssetsFail(Exception e) {

    }

    @Override
    public void xxxxxxxxxxxxxx首页相关结束xxxxxxxxxxxxxx() {

    }

    @Override
    public void xxxxxxxxxxxxxx算码相关开始xxxxxxxxxxxxxx() {

    }

    @Override
    public void onOpenBuyMinerSuccess(String price, String buyMinerProportion) {

    }

    @Override
    public void onOpenBuyMinerFail(Exception e) {

    }

    @Override
    public void onBuyMinerSuccess() {

    }

    @Override
    public void onBuyMinerFail(Exception e) {

    }

    @Override
    public void onQueryMinerProfitListSuccess(List<EntityComputeCodeEarningRecord> list) {

    }

    @Override
    public void onQueryMinerProfitListFail(Exception e) {

    }

    @Override
    public void onQueryUserMinerListSuccess(EntityMyComputeCode entityMyComputeCode) {

    }

    @Override
    public void onQueryUserMinerListFail(Exception e) {

    }

    @Override
    public void onMinerPayDepositSuccess(String resp) {

    }

    @Override
    public void onMinerPayDepositFail(Exception e) {

    }

    @Override
    public void onMinerReturnDepositSuccess(String resp) {

    }

    @Override
    public void onMinerReturnDepositFail(Exception e) {

    }

    @Override
    public void xxxxxxxxxxxxxx算码相关结束xxxxxxxxxxxxxx() {

    }

    @Override
    public void xxxxxxxxxxxxxx订单相关开始xxxxxxxxxxxxxx() {

    }

    @Override
    public void onOrderApplySuccess() {

    }

    @Override
    public void onOrderApplyFail(Exception e) {

    }

    @Override
    public void onGetOrderDetailsSuccess() {

    }

    @Override
    public void onGetOrderDetailsFail(Exception e) {

    }

    @Override
    public void onGetOrderBuyAndSellListSuccess(List<EntityOrder> orderList) {

    }

    @Override
    public void onGetOrderWithTradeListSuccess(List<EntityOrderWithTrade> orderList) {

    }

    @Override
    public void onGetOrderWithTradeListFail(Exception e) {

    }

    @Override
    public void onGetOrderBuyAndSellListFail(Exception e) {

    }

    @Override
    public void onUpdateOrderStatusSuccess() {

    }

    @Override
    public void onUpdateOrderStatusFail(Exception e) {

    }

    @Override
    public void onUploadVoucherSuccess() {

    }

    @Override
    public void onUploadVoucherFail(Exception e) {

    }

    @Override
    public void onCancelTradingOrderSuccess() {

    }

    @Override
    public void onCancelTradingOrderFail(Exception e) {

    }

    @Override
    public void onOrderRevokeSuccess() {

    }

    @Override
    public void onOrderRevokeFail(Exception e) {

    }

    @Override
    public void xxxxxxxxxxxxxx订单相关结束xxxxxxxxxxxxxx() {

    }

    @Override
    public void xxxxxxxxxxxxxx资产相关开始xxxxxxxxxxxxx() {

    }

    @Override
    public void onGetUserBurseCoinNumberListSuccess(EntityBurseCoinNumber entityBurseCoinNumber) {

    }

    @Override
    public void onGetUserBurseCoinNumberListFail(Exception e) {

    }

    @Override
    public void onGetServiceChargePercentSuccess(double d) {

    }

    @Override
    public void onGetServiceChargePercentFail(Exception e) {

    }

    @Override
    public void onTransferAccountsSuccess() {

    }

    @Override
    public void onTransferAccountsFail(Exception e) {

    }

    @Override
    public void onGetUserBurseListSuccess(List<EntityBurseRecord> entityBurseRecordList) {

    }

    @Override
    public void onGetUserBurseListFail(Exception e) {

    }

    @Override
    public void onGetUserBurseDetailSuccess(EntityBurseRecordDetail entityBurseRecordDetail) {

    }

    @Override
    public void onGetUserBurseDetailFail(Exception e) {

    }

    @Override
    public void onAddPartnerApplySuccess(EntityPartnerApply entityPartnerApply) {

    }

    @Override
    public void onAddPartnerApplyFail(Exception e) {

    }

    @Override
    public void onAssetGTEOverviewSuccess(EntityAssetGTEOverview entityAssetGTEOverview) {

    }

    @Override
    public void onAssetGTEOverviewFail(Exception e) {

    }

    @Override
    public void onAssetGTKOverviewSuccess(EntityAssetGTKOverview entityAssetGTKOverview) {

    }

    @Override
    public void onAssetGTKOverviewFail(Exception e) {

    }

    @Override
    public void onAssetGTEDetailSuccess(EntityAssetGTEDetail entityAssetGTEDetail) {

    }

    @Override
    public void onAssetGTEDetailFail(Exception e) {

    }

    @Override
    public void onAssetGTKDetailSuccess(EntityAssetGTKDetail entityAssetGTKDetail) {

    }

    @Override
    public void onAssetGTKDetailFail(Exception e) {

    }

    @Override
    public void onAssetDetailRecordSuccess(List<EntityAssetDetailRecord> entityAssetDetailRecordList) {

    }

    @Override
    public void onAssetDetailRecordFail(Exception e) {

    }

    @Override
    public void onOtherAssetSuccess(String type,EntityOtherAssets entityOtherAssets) {

    }

    @Override
    public void onOtherAssetFail(Exception e) {

    }


    @Override
    public void xxxxxxxxxxxxxx资产相关结束xxxxxxxxxxxxx() {

    }

    @Override
    public void xxxxxxxxxxxxxx社区相关开始xxxxxxxxxxxxx() {

    }

    @Override
    public void onCommunityLevelListSuccess(List<EntityCommunityLevelMember> entityCommunityLevelMemberList) {

    }

    @Override
    public void onCommunityLevelListFail(Exception e) {

    }

    @Override
    public void onCommunityOverviewSuccess(EntityCommunity resp) {

    }

    @Override
    public void onCommunityOverviewFail(Exception e) {

    }

    @Override
    public void xxxxxxxxxxxxxx社区相关结束xxxxxxxxxxxxx() {

    }

    @Override
    public void xxxxxxxxxxxxxx币种转化相关开始xxxxxxxxxxxxx() {

    }

    @Override
    public void onTransferRechargeSuccess(String resp) {

    }

    @Override
    public void onTransferRechargeFail(Exception e) {

    }

    @Override
    public void onTransferTransferSuccess(String resp) {

    }

    @Override
    public void onTransferTransferFail(Exception e) {

    }

    @Override
    public void onTransferOpenTransferSuccess(String resp) {

    }

    @Override
    public void onTransferOpenTransferFail(Exception e) {

    }

    @Override
    public void xxxxxxxxxxxxxx币种转化相关结束xxxxxxxxxxxxx() {

    }

    @Override
    public void xxxxxxxxxxxxxx支付相关开始xxxxxxxxxxxxx() {

    }

    @Override
    public void onPaymentPaySuccess(String resp) {

    }

    @Override
    public void onPaymentPayFail(Exception e) {

    }

    @Override
    public void xxxxxxxxxxxxxx支付相关结束xxxxxxxxxxxxx() {

    }

    @Override
    public void xxxxxxxxxxxxxx交易相关开始xxxxxxxxxxxxx() {

    }

    @Override
    public void onQueryBBValueSuccess(int bbType,String value) {

    }

    @Override
    public void onQueryBBValueFail(Exception e) {

    }

    @Override
    public void onTransOverviewSuccess(String resp) {

    }

    @Override
    public void onTransOverviewFail(Exception e) {

    }

    @Override
    public void onQueryTradePriceDataSuccess(EntityTradePriceData entityTradePriceData) {

    }

    @Override
    public void onQueryTradePriceDataFail(Exception e) {

    }

    @Override
    public void queryTransactionOrderListSuccess(List<EntityOrderWithTrade> list) {

    }

    @Override
    public void queryTransactionOrderListFail(Exception e) {

    }

    @Override
    public void onCancelUnTradeTransactionOrderSuccess() {

    }

    @Override
    public void onCancelUnTradeTransactionOrderFail(Exception e) {

    }

    @Override
    public void gteBuyOrSellSuccess(String data) {

    }

    @Override
    public void gteBuyOrSellFail(Exception e) {

    }

    @Override
    public void onQueryTradeBuyAndSellDetailSuccess(EntityTradeOrderDeatil orderDeatil) {

    }

    @Override
    public void onQueryTradeBuyAndSellDetailFail(Exception e) {

    }

    @Override
    public void onqueryOrderDetailSuccess(EntityOrderDetail orderDetail) {

    }

    @Override
    public void onqueryOrderDetailFail(Exception e) {

    }

    @Override
    public void onConfirmPayGteSuccess() {

    }

    @Override
    public void onConfirmPayGteFail(Exception e) {

    }

    @Override
    public void onPayMoneySuccess() {

    }

    @Override
    public void onPayMoneyFail(Exception e) {

    }

    @Override
    public void onUserBuyTradeSuccess() {

    }

    @Override
    public void onUserBuyTradeFail(Exception e) {

    }

    @Override
    public void xxxxxxxxxxxxxx交易相关结束xxxxxxxxxxxxx() {

    }

    @Override
    public void xxxxxxxxxxxxxx验证相关开始xxxxxxxxxxxxx() {

    }

    @Override
    public void onVerifyGeneralAuthSuccess(String resp) {

    }

    @Override
    public void onVerifyGeneralAuthFail(Exception e) {

    }

    @Override
    public void onVerifySafeAuthSuccess(String resp) {

    }

    @Override
    public void onVerifySafeAuthFail(Exception e) {

    }

    @Override
    public void onGetIsGeneralAuthSuccess(EntityGeneralAuth entityGeneralAuth) {

    }

    @Override
    public void onGetIsGeneralAuthFail(Exception e) {

    }

    @Override
    public void xxxxxxxxxxxxxx验证相关结束xxxxxxxxxxxxx() {

    }

    @Override
    public void xxxxxxxxxxxxxx行权相关开始xxxxxxxxxxxxx() {

    }

    @Override
    public void onAddExerciseOrderSuccess(String resp) {

    }

    @Override
    public void onAddExerciseOrderFail(Exception e) {

    }

    @Override
    public void onGetExerciseOrderListSuccess(List<EntityExercise> entityExerciseList) {

    }

    @Override
    public void onGetExerciseOrderListFail(Exception e) {

    }

    @Override
    public void onGetExerciseOrderSuccess(EntityExercise entityExercise) {

    }

    @Override
    public void onGetExerciseOrderFail(Exception e) {

    }

    @Override
    public void xxxxxxxxxxxxxx行权相关结束xxxxxxxxxxxxx() {

    }
}


